<?php

namespace app\modules\v2\controllers;


class VersionController extends \yii\rest\Controller
{

    /**
     * 获取版本信息
     * @return array
     */
    public function actionIndex(): array
    {
        $arr_version = [
            'version'=> \Yii::$app->params['version_info']['version'],
            'time' => \Yii::$app->params['version_info']['update_time']
        ];

        return [
            'errCode'=> '200',
            'msg' => 'success',
            'returnData' => $arr_version
        ];
    }
}